package com.learning.security.dal.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色和权限点关联表
 * </p>
 *
 * @author xxx
 * @since 2024-10-04
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("system_role_right")
@Schema(name = "RoleRightDO", description = "角色和权限点关联表")
public class AdminRoleRightDO extends BaseDO {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户ID")
    @TableField("right_id")
    private Long rightId;

    @Schema(description = "角色ID")
    @TableField("role_id")
    private Long roleId;
}
